package com.acme;

import com.acme.Account;

public abstract class AbstractAccount implements Account{

	protected int id;
	protected double balance;

	public AbstractAccount(final double x) {
		this.balance = x;
	}

	public double getBalance() {
		return balance;
	}

	public void deposit(final double x){
		this.balance = this.balance + x;
		System.out.println(" succsessful. Your balance now: "+this.balance);
	};

	public void withdraw(final double x){
		if (this.balance >= x) {
			this.balance = this.balance - x;				
		}
	};

}
